package com.yusheng.tr.common.core.openfeign.base;



import com.yusheng.tr.common.core.entity.system.SysOperLog;
import com.yusheng.tr.common.core.openfeign.factory.SysOperLogFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName jiang_jun_qin
 * @date 2023/4/11 13:18
 * @Version 1.0
 */
@FeignClient(value = "school-system",contextId = "sysOperLogFeign",fallbackFactory = SysOperLogFeignServiceFallback.class)
public interface ISysOperLogFeignService {

    @PostMapping(value = "/inner/insert/operlog",consumes= MediaType.APPLICATION_JSON_VALUE)
    void insertOperlog(@RequestBody SysOperLog operLog);
}
